﻿<%@ Page Title="" Language="C#" MasterPageFile="~/YUIAspNet.Master" AutoEventWireup="True" CodeBehind="Default.aspx.cs" Inherits="YUIAspNetDemo.Logger.General" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>YUIAsp.Net Controls : LiveDemo : Logger : Usage info</title>
    <script type="text/javascript">
        function LogMessage(sender, args) {
            var logMessage = $get('<%= this.tbMessageToLog.ClientID %>').value;
            $find("<%=logger.ClientID %>").log(logMessage, "warn");
            
            args.cancel = true;
        }
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <h4>General</h4>
    
<p>YUIAspNet Logger is not a control to use in a website. However, it's very good when trying to debug a behaviour inside a YUI control.</p>

<p>
    <asp:TextBox ID="tbMessageToLog" runat="server"></asp:TextBox>
    <yui:Button ID="btnLog" runat="server" OnClientClick="LogMessage" Text="Log" />
    
    <yui:Logger ID="logger" runat="server" Right="0" Top="0" />
</p>
</asp:Content>
